package com.linkage.event.pojo.dao;

import com.linkage.event.pojo.entity.EventMedia;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface EventMediaMapper {
    int deleteByPrimaryKey(String id);

    int insert(EventMedia record);

    int insertSelective(EventMedia record);

    EventMedia selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(EventMedia record);

    int updateByPrimaryKey(EventMedia record);

    List<EventMedia> selectByEventMessagePrimaryKey(String eventMsgId);

    void insertBatch(@Param("eventMedias") List<EventMedia> eventMedias);
}